package demo3;

import org.springframework.stereotype.Component;

@Component("winter")//()中参数用于指定bean的id,方便Spring容器通过id找到对应的bean，唯一的
public class Sweater implements Clothes {
    @Override
    public String toString() {
        return "毛衣";
    }
}
